package cn.itsource.hrm.utils.excel;

import cn.hutool.poi.excel.ExcelReader;
import cn.hutool.poi.excel.ExcelUtil;
import cn.itsource.hrm.domain.User;

import java.util.List;

//读取Excel工具类
public class ReadExcelTools {

    //利用糊涂工具读取Excel表格中所有用户信息
    public static List<User> readExcel(String filePath){
        ExcelReader reader = ExcelUtil.getReader(filePath);
        List<User> result = reader.readAll(User.class);
        return result;
    }
}
